package com.zjcode.cdcer.service;


import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.ZjcodeSelfTestInfoServiceFallBack;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * (ZjcodeSelfTestInfo)表服务接口
 *
 * @author makejava
 * @since 2023-09-14 10:22:39
 */
@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = ZjcodeSelfTestInfoServiceFallBack.class)
public interface ZjcodeSelfTestInfoService {

    @PostMapping("/cdcerserver/v1/riskfactor/listAllData")
    @ApiOperation("获取所有的风险因素表数据")
    JsonObj listAllData(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/riskfactor/getContentById")
    @ApiOperation("获取风险因素表原始数据")
    JsonObj getContentById(@RequestBody PageData pageData);

    @PostMapping("/cdcerserver/v1/riskfactor/edit")
    JsonObj insert(PageData pageData);

    @PostMapping("/cdcerserver/v1/riskfactor/update")
    JsonObj update(PageData pageData);
}
